import { Injectable,Inject } from '@nestjs/common';
// import { InjectRepository } from '@nestjs/typeorm';
// import { Repository, createConnection } from 'typeorm';
//import { Files as Entity } from '@/entity/files/files.entity';

@Injectable()
export class AppService {

  constructor(
    // @InjectRepository(Entity)
    // private readonly repository: Repository<Entity>
    ) { }

  /**
   * 测试返回服务
   */
  getHello(): string {
    return 'Hello World! ------';
  }

  /**
   * 获取图片路径 
   */
  // async getImg(id:number):Promise<Entity>  {
  //   return this.repository.findOne(id);
  // }

}
